package com.hkd.user_service.api;

import com.hkd.common.api.ApiResponse;
import com.hkd.user_service.api.entity.SysUserRole;
import com.hkd.user_service.api.fallback.SysUserRoleServiceImplFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author HKD
 * @date 2022/8/20 18:10
 */
//@Component
@FeignClient(name = "user-service",
        contextId = "SysUserRoleService",
        fallbackFactory = SysUserRoleServiceImplFallback.class
)
public interface SysUserRoleService {
    @PostMapping("insertUserRole")
    ApiResponse insertUserRole(@RequestBody SysUserRole userRole);
}
